import { createRouter, createWebHistory } from 'vue-router';
import UserView from '@/view/UserView.vue';
import CourseView from '@/view/CourseView.vue';
import FinanceView from '@/view/FinanceView.vue';
import HealthView from '@/view/HealthView.vue';
import SocialView from '@/view/SocialView.vue';
import MoodView from '@/view/MoodView.vue';
import ResourceView from '@/view/ResourceView.vue';
import Home from "@/view/Home.vue";

const routes = [
    { path: '/', redirect: '/users' },
    { path: '/users', component: UserView },
    { path: '/courses', component: CourseView },
    { path: '/finance', component: FinanceView },
    { path: '/health', component: HealthView },
    { path: '/social', component: SocialView },
    { path: '/mood', component: MoodView },
    { path: '/resources', component: ResourceView },
    {path: '/home',component: Home},
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
